package com.attilax.clr.imp;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import com.attilax.clr.IClrerPart;

/**
 * 300*300
 * @author Administrator
 *
 */
public class tooMiniPixPicClrerPartImp extends MoveExcuter implements IClrerPart {

	@Override
	public boolean isGabFile(Object object) {
		File f = new File((String) object);
		try {
			BufferedImage img = ImageIO.read(f);
			if(img==null) //broken pic  or not jpg fmt file 
				return true;
			if( img.getHeight()<210 || img.getWidth()<150 )
		//	if (length < 20000)
				return true;
			else
				return false;
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new RuntimeException(e);
		}
	//	long length = f.length();
	
	}

 

}
